// pages/concern/concern.js
Page({
  data: {
    value:'',
    concern:[{id:'1',avatar:'http://tmp/yIZkkUEbCE6m84960d84132143a9fd0e43f415af6b4a.jpg',name:'111',intro:'lllllllllllllllllllllllllll',hu:true},
  ]
}
,
  onLoad(options) {
    let that=this
    wx.request({
      url: 'http://localhost:1234/comment',
      header: {
        'content-type': "application/json"
      },
      data:{
        userid:wx.getStorageSync('userid')
      },
      method: "POST",
      success: res => {
        console.log(res.data)
        that.setData({
          concern:res.data
        })
      },
      fail: error =>{
        console.log(error);
      }
    })
  },
  
  user(e){
    console.log(e.currentTarget.dataset.id)
    let id=e.currentTarget.dataset.id
    wx.navigateTo({
      url: '/pages/detail/detail?id='+id,
    })
  }
})